<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list.css"/>
		<link rel="stylesheet" href="./App/Home/View/Common/css/bottom.css" />
		<link rel="stylesheet" href="./App/Home/View/Common/css/head1.css" />
		<script src="./Public/jquery-1.12.2.min.js"></script>
		<script src="./Public/Home/js/list.js"></script>
		<script src="./App/Home/View/Common/js/head1.js"></script>
	</head>
	<body>
	{{include file="../Common/View/head1"}}
	
		<div class="product-list-page">
			<div class="center-content">
				<span id="path-nav">
					<a href="">BOYS首页</a>
				</span>
				<div class="list-left">
					<h2 class="allcate">
						<a href="javascript:void(0);">全部分类</a>
					</h2>
					<ul class="sort-container">
						{{foreach from="$catedata" value="$v"}}
						<li>
							<h3 class="toplist">
								<div class="jt"></div>
								<span class="toplisttext">{{$v['cname']}}</span>
							</h3>
							<ul class="sonlist">
								<li>
									<a href="{{U('index',array('cid'=>$v['cid']))}}">全部{{$v['cname']}}</a>
								</li>
								{{foreach from="$v['son']" value="$vv"}}
								<li>
									<a href="{{U('index',array('cid'=>$vv['cid']))}}">{{$vv['cname']}}</a>
								</li>
								{{endforeach}}
							</ul>
						</li>
						{{endforeach}}
					</ul>
				</div>
				{{if value="!empty($goodsData)"}}
				<div class="list-right">
					{{if value="$_GET['cid']"}}
					<div class="filter-box">
						<div class="checked-conditions">
							<div class="title" style="margin-top: 5px;">
								已选条件：
							</div>
							<a class="selectcate">
								BOYS x
							</a>
							<p class="clear">
								<a href="">清空筛选条件</a>
							</p>
						</div>
						<!--<div class="channel">
							<div class="title">
								性别：
							</div>
							<div class="selectsex">
								<a href="">BOYS</a>
								<a href="">BOYS</a>
							</div>
						</div>
						<div class="brand">
							<span class="titles">品牌:</span>
							<div class="bandlist">
								<ul class="defaultlist">
									<li>Life·After Life</li>
									<li>SLOW</li>
									<li>THETHING</li>
									<li>Life·After Life</li>
									<li>Life·After Life</li>
									<li>Life·After Life</li>
									<li>Life·After Life</li>
									<li>Life·After Life</li>
									<li>Life·After Life</li>
									<li>Life·After Life</li>
								</ul>
								
								<div class="brand-opt">
									<span class="more-opt">更多</span>
									<span class="multi">多选+</span>
								</div>
								
								<div class="brand-panel">
									<div class="panel-head">
										<div class="brands-index">
											<p>
												<span>全部</span>
												<span>0~9</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
												<span>A</span>
											</p>
											<div class="brand-search">
												<input type="text" />
												<span>搜索</span>
											</div>
										</div>
									</div>
									
									<div class="plane-body">
										<ul class="check-container">
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
											<li>blackjack</li>
										</ul>
									</div>
									
									<div class="plane-btn">
										<button id="ok" >确定</button>
										<button id="cancel" >取消</button>
									</div>
								</div>
							</div>
						</div>
						
						<div class="price">
							<span class="title">价格:</span>
							<div class="price_choice">
								<a class="pri_range" href="">¥0-379</a>
								<a class="pri_range" href="">¥0-379</a>
								<a class="pri_range" href="">¥0-379</a>
								<a class="pri_range" href="">¥0-379</a>
								<div class="ud-price-range">
									<span>¥</span>
									<input type="text" name="" id="" value="" />
									<span>-</span>
									<input type="text" name="" id="" value="" />
								</div>
							</div>
							
						</div>
						
						<div class="color">
							<span class="title">颜色:</span>
							<div class="selectcolor">
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
								<div class="colors">
									<div class="color-block" style="background-color: #000000;"></div>
									<a href="">黑色</a>
								</div>
							</div>
						</div>-->
						{{foreach from="$attr"  key="$k" value="$v"}}
						<div class="size">
							<span class="title">{{$v['name']}}:</span>
							<div class="sizebox">
								<?php 
									$temp = $param;
									$temp[$k] = 0;
								 ?>
								<li <?php if($param[$k] == 0): ?>class="hover"<?php endif ?> >
									<a  <?php if($param[$k] == 0): ?>class="hover"<?php endif ?> href="{{U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)))}}">不限</a>
								</li>
								{{foreach from="$v['value']" value="$vv"}}
								<?php 
									$temp[$k] = $vv['gaid'];
								 ?>
								<li <?php if($param[$k] == $vv['gaid']): ?>class="hover"<?php endif ?> >
									<a <?php if($param[$k] == $vv['gaid']): ?>class="hover"<?php endif ?> href="{{U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)))}}">{{$vv['gavalue']}}</a>
								</li>
								{{endforeach}}
							</div>
						</div>
						{{endforeach}}
						
						<!--<div class="senior">
							<span class="title">高级选项:</span>
							<div class="optiondetail">
								<div class="topoption">
									<li>风格
										<div class="senior-up-icon">
											<ul>
												<li>
													<a href="">街头</a>
												</li>
												<li>
													<a href="">街头</a>
												</li>
												<li>
													<a href="">街头</a>
												</li>
											</ul>
										</div>
									</li>
									<li>风格
										<div class="senior-up-icon">
										</div>
									</li>
									<li>风格
										<div class="senior-up-icon">
										</div>
									</li>
									<li>风格
										<div class="senior-up-icon">
										</div>
									</li>
									<li>风格
										<div class="senior-up-icon">
										</div>
									</li>
									<li>风格
										<div class="senior-up-icon">
										</div>
									</li>
								</div>
								<div class="senior-sub-wrap">
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
									<li><a href="">街头</a></li>
								</div>
							</div>
						</div>-->
					</div>
					{{endif}}
					<div class="goods-container">
						{{foreach from="$goodsData" value="$v"}}
						<div class="good-info">
							<div class="tag-container">
								{{if value="$v['sale_status'] == 2 "}}
								<h5 class="good-tag sale-tag">
									SALE
								</h5>
								{{endif}}
								{{if value="$v['sale_status'] == 1"}}
								<h5 class="good-tag new-tag">
									NEW
								</h5>
								{{endif}}
							</div>
							<div class="good-detail-img">
								<a href="{{U('Content/index',array('gid'=>$v['gid']))}}" target="_blank">
									<img src="{{$v['listpic']}}"/>
								</a>
							</div>
							<div class="good-detail-text">
								<a class="goodname" href="{{U('Content/index',array('gid'=>$v['gid']))}}" target="_blank">{{$v['gname']}}</a>
								<p class="brand"><a href="">{{$v['brand_name']}}</a></p>
								<p class="price">
									{{if value="$v['sale_price'] == 0 "}}
									<span class="sale-price">¥{{$v['market_price']}}</span>
									{{else}}
									<span class="market_price">¥{{$v['market_price']}}</span>
									<span class="sale-price">¥{{$v['sale_price']}}</span>
									{{endif}}
								</p>
							</div>
						</div>
						{{endforeach}}
					</div>
					
					<div class="product-pager">
						<span class="total">1 - 59 / 共18487件商品</span>
						<div class="pager">
							<a class="cur" href="">1</a>
							<a href="">2</a>
							<a href="">3</a>
							<a href="">4</a>
							<a href="">5</a>
							<a href="">6</a>
							<a href="">...</a>
							<a href="">314</a>
							<a href="">下一页 ></a>
						</div>
					</div>
					
					
					<input type="hidden" id="latest-walk-count" value="" />
					
					<!--<div class="last_walk">
						<h2>最近浏览商品</h2>
						<div class="latest-walk-goods">
							<div class="good">
								<a href="">
									<img class="lstwalkgood" src="./images/lstgoods1.jpg" alt="" />
								</a>
								<a class="name" href="">奔跑吧兄弟 “撕名牌”魔术贴徽章运动裤</a>
								<p class="price">
									<span class="market_price">¥299</span>
									<span class="sale-price">¥139</span>
								</p>
							</div>
						</div>
					</div>-->
				</div>
				
				{{else}}
				<div class="list-right">抱歉！没有找到相关的商品...</div>
				{{endif}}
			</div>
		</div>
		{{include file="../Common/View/bottom"}}
	</body>
</html>
